<?php
require_once("../config.php");
require_once("isuser.php");
//page_constant("reg");
$dsql->SetQuery("SELECT product.*, pic.file FROM product RIGHT JOIN pic ON product.id = pic.productid WHERE pic.userid =".$_SESSION['userid']);
$dsql->Execute();
while($row=$dsql->GetArray())
	$allproduct[]=$row;
//var_dump($allfile);

$tpl->assign("product",$allproduct);

$tpl->display("user_index.tpl");

?>